<?php
/**
 * Plugin Name: Blog Descriptions
 * Plugin URI: http://screamingcodemonkey.com/
 * Description: Randomize your Blog Description
 * Version:0.0
 * Author: Screaming Code Monkey
 * Plugin URI: http://screamingcodemonkey.com/
 **/
 
include 'admin-menu.php';

/**
 * shuffle the array of descriptions and output one
 */
function scm_swap_blog_description( $output , $show){

	$descriptions = get_option( 'scm_blog_descriptions_options' );
	
	if( 'description' == $show && !empty($descriptions)){
		shuffle($descriptions);
		$output = stripslashes( $descriptions[0] );
	}

	return $output;
}

add_filter('bloginfo', 'scm_swap_blog_description', 10 , 2);
?>